package com.yeyaomai.dksns.flowis.dao;

import java.util.List;
import java.util.Map;

import com.yeyaomai.dksns.flowis.domain.FlowAuth;

/**
 * 权限表基本操作
 * 
 * @author xiaqin
 * @date 2012-06-26
 */
public interface FlowAuthDao {

	void addFlowAuth(FlowAuth flowAuth);

	void addFlowAuth_Role(FlowAuth flowAuth);
	
	Integer countFlowAuth();

	void updateFlowAuth(FlowAuth flowAuth);

	void deleteFlowAuth(Long authId);

	void deleteFlowAuth_Role(Long roleId);
	
	void deleteFlowAuth_RoleByAuthId(Long authId);

	FlowAuth getFlowAuthByAuthId(Long authId);
	
	FlowAuth getFlowAuthByAuthName(String authName);

	List<FlowAuth> listFlowAuth(Map<String, Object> map);
	
	List<FlowAuth> listFlowAuthRole(Long roleId);
	
	List<FlowAuth> listFlowAuthByStatus();
	
	List<FlowAuth> getFlowAuthByRoleId(Long roleId);
	
	Integer getMaxAuthId();
}
